import os

class CreateDirector:

    def __init__(self,dir):
        self.file = dir + '/'

    def create(self):
        is_exists = os.path.exists(self.file)
        if not is_exists:
            os.makedirs(self.file)
            print('目录 %s 构建成功！' % (self.file))
        else:
            print('目录 %s 已存在！' % (self.file))

if __name__ == '__main__':
    createDirector = CreateDirector('./out/oiu')
    createDirector.create()